import numpy

def scale(imageData, scale):
    result = numpy.kron(imageData, numpy.ones((scale, scale, 1), int))
    return result